package com.aoyy.model;

import java.util.Set;
import java.util.TreeSet;
import java.io.Serializable;
/**============================================
 * <code>ProductType</code> mode class
 * @author Administrator
 * @date 2017-07-12
 * ============================================= */
public class ProductType implements Serializable {
  private static final long serialVersionUID = 43226128326264863L;
  private Integer typeId;
  private String name;
  private Integer level;
  private ProductType parent;
  private Set<ProductType> children;
  private Set<Product> products = new TreeSet<Product>();
  
  public void setTypeId(Integer typeId) {
	this.typeId = typeId;  
  }
  public Integer getTypeId() {
	return typeId;  
  }
  
  public void setName(String name) {
	this.name = name;  
  }
  public String getName() {
	return name;  
  }
  
  public void setLevel(Integer level) {
	this.level = level;  
  }
  public Integer getLevel() {
	return level;  
  }
    
  public void setParent(ProductType parent) {
	this.parent = parent;  
  }
  public ProductType getParent() {
	return parent;  
  }
  
  public void setChildren(Set<ProductType> children) {
	this.children = children;  
  }
  public Set<ProductType> getChildren() {
	return children;  
  }
  
  public void setProducts(Set<Product> products) {
	this.products = products;  
  }
  public Set<Product> getProducts() {
	return products;  
  }

}
